/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hhx.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.hhx.entity.HhxOrder;
import com.thinkgem.jeesite.modules.hhx.dao.HhxOrderDao;

/**
 * 单表生成Service
 * @author zmy
 * @version 2019-04-17
 */
@Service
@Transactional(readOnly = true)
public class HhxOrderService extends CrudService<HhxOrderDao, HhxOrder> {
	
	@Autowired
	private HhxOrderDao hhxOrderDao;

	public HhxOrder get(String id) {
		return super.get(id);
	}
	
	public List<HhxOrder> findList(HhxOrder hhxOrder) {
		return super.findList(hhxOrder);
	}
	
	public Page<HhxOrder> findPage(Page<HhxOrder> page, HhxOrder hhxOrder) {
		return super.findPage(page, hhxOrder);
	}
	
	@Transactional(readOnly = false)
	public void save(HhxOrder hhxOrder) {
		super.save(hhxOrder);
	}
	
	@Transactional(readOnly = false)
	public void delete(HhxOrder hhxOrder) {
		super.delete(hhxOrder);
	}
	
	@Transactional(readOnly = false)
	public int insertOrder(String id, String userid, String financeid, String amt,String financedesc) {
		// TODO Auto-generated method stub
		return hhxOrderDao.insertOrder(id,userid,financeid,amt,financedesc);
	}

	public List<Object[]> getList(String userid) {
		// TODO Auto-generated method stub
		return hhxOrderDao.getList(userid);
	}

	@Transactional(readOnly = false)
	public int updateOrder(String id, String status) {
		// TODO Auto-generated method stub
		return hhxOrderDao.updateOrder(id,status);
	}
	
}